Fix diagnosis of unhandled exceptions.
authorEwan Mellor <ewan@xensource.com>
Wed, 28 Mar 2007 09:04:32 +0000 (10:04 +0100)
committerEwan Mellor <ewan@xensource.com>
Wed, 28 Mar 2007 09:04:32 +0000 (10:04 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/main.py

index 87f5ae29a8510f9be8d0f1d3c6823eb18a516dac..77d647f4026f4c1035767795d792715bcd834c42 100644 (file)
@@ -2371,11 +2371,10 @@ def _run_cmd(cmd, cmd_name, args):
            if isinstance(e, security.ACMError):
                err(str(e))
                return False, 1
-        else:
-            print "Unexpected error:", sys.exc_info()[0]
-            print
-            print "Please report to xen-devel@lists.xensource.com"
-            raise
+        print "Unexpected error:", sys.exc_info()[0]
+        print
+        print "Please report to xen-devel@lists.xensource.com"
+        raise
 
     return False, 1